<!-- <template>
<div>
    用户管理
</div>
</template>
<script setup>

</script>
<style scoped>
</style> -->
<template>  
    <div class="home">  
      <h1>Welcome to the Second Hand Platform</h1>  
      <nav>  
        <router-link to="/login">登录</router-link>  
        <router-link to="/register">注册</router-link>  
        <router-link v-if="isAuthenticated" to="/my-page">My Page</router-link>  
      </nav>  
    </div>  
  </template>  
    
  <script>  
  export default {  
    computed: {  
      isAuthenticated() {  
        return localStorage.getItem('authenticated') === 'true';  
      }  
    }  
  };  
  </script>  
    
  <style scoped>  
  .home {  
    text-align: center;  
    margin-top: 50px;  
  }  
  nav {  
    margin-top: 20px;  
  }  
  nav a {  
    margin: 0 10px;  
  }  
  </style>